<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of posts_controller
 *
 * @author Aacis
 */
class PostsController extends AppController {
    var $name = "Posts";

    function helloWorld() {
        //echo "this is test from function itself";
    }

    function getUserName() {
        echo "hey ! I need to get some username<br>";
        print_r($_POST);
    }

    function index() {
        $this->set('posts',$this->Post->find('all'));
    }

   
}
?>
